/*项目信息管理详情-
*样式：
* 上文字
* 下文字   可点击跳转蓝色文字
* */
import 'package:flutter/cupertino.dart';
import 'package:frametrim/utility/sq_color.dart';
import 'package:frametrim/utility/toast.dart';

class TextUpTextViewJump extends StatelessWidget {
  late String text1;
  late String text2;
  late String lantext;
  late String jumpUrl;

  TextUpTextViewJump(this.text1, this.text2, this.lantext,this.jumpUrl);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(bottom: 15),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Text(text1,
              style: TextStyle(fontSize: 14, color: SQColor.color_60black)),
          SizedBox(height: 5),
          Row(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text(text2,
                  style: TextStyle(fontSize: 14, color: SQColor.color_90black)),
              text2.isNotEmpty?SizedBox(width: 20):SizedBox(width: 0),
              Expanded(
                  child: GestureDetector(
                onTap: () {
                  ToastUtils.show('点击查看${jumpUrl}');
                },
                child: Text(lantext,
                    style:
                        TextStyle(fontSize: 14, color: SQColor.color_0052D9)),
              ))
            ],
          )
        ],
      ),
    );
  }
}
